/**
 * 
 */
package com.aibili.pojo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 礼物记录表
 * 
 * @author qiuch
 * 
 */
@Entity
@Table(name = "t_gift_record")
public class GiftRecord implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 6734740117231616299L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "id", length = 11, nullable = false)
	private long id;

	@Column(name = "gift_id")
	private long gift_id;// 礼物id

	@Column(name = "point")
	private int point;// 爱币数

	@Column(name = "from_id", length = 11, nullable = false)
	private long from_id;// 送出用户的id

	@Column(name = "to_id", length = 11, nullable = false)
	private long to_id;// 接收用户的id

	@Column(name = "is_change", length = 2, nullable = false)
	private int is_change;// 是否已经兑换提现 0默认，未兑换 1 已兑换

	@Column(name = "receive_time", columnDefinition = "TIMESTAMP default CURRENT_TIMESTAMP")
	private Date receive_time;// 收到礼物的时间

	@Column(name = "anonymous_id")
	private String anonymous_id;

	@Transient
	private GiftInfo gift;

	@Transient
	private String to_user_name;

	public String getTo_user_name() {
		return to_user_name;
	}

	public void setTo_user_name(String to_user_name) {
		this.to_user_name = to_user_name;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public long getGift_id() {
		return gift_id;
	}

	public void setGift_id(long gift_id) {
		this.gift_id = gift_id;
	}

	public int getPoint() {
		return point;
	}

	public void setPoint(int point) {
		this.point = point;
	}

	public long getFrom_id() {
		return from_id;
	}

	public void setFrom_id(long from_id) {
		this.from_id = from_id;
	}

	public long getTo_id() {
		return to_id;
	}

	public void setTo_id(long to_id) {
		this.to_id = to_id;
	}

	public int getIs_change() {
		return is_change;
	}

	public void setIs_change(int is_change) {
		this.is_change = is_change;
	}

	public Date getReceive_time() {
		return receive_time;
	}

	public void setReceive_time(Date receive_time) {
		this.receive_time = receive_time;
	}

	public GiftInfo getGift() {
		return gift;
	}

	public void setGift(GiftInfo gift) {
		this.gift = gift;
	}

	public String getAnonymous_id() {
		return anonymous_id;
	}

	public void setAnonymous_id(String anonymous_id) {
		this.anonymous_id = anonymous_id;
	}

}
